package il.ac.braude.sona.ui.skeleton;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class SONAFrame extends JFrame {
	public SONAFrame() {
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		setLocation(dim.width/2 - getWidth()/2, dim.height/2 - getHeight()/2);
		dim.height/=3;
		dim.width/=3;
		setPreferredSize(dim);
	}
	public void showFrame() {		
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		pack();
		setLocation(dim.width/2 - getWidth()/2, dim.height/2 - getHeight()/2);
		setVisible(true);

	}
}
